package pages;

import finds.Finder;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.WebElement;

/**
 * Created by 13714526025 on 2018/9/19.
 */
public class SettingPage {
    private AndroidDriver<WebElement> driver;
    private Finder finder;

    public SettingPage(Finder finder){
        this.finder=finder;
    }
    //昵称
    public void nameClick(){
        finder.findElementById("com.oppo.ohome:id/user_name").click();
    }
    //已支持的品牌及型号
    public void supportClick(){
        finder.findElementById("com.oppo.ohome:id/tv_support").click();
    }
    //意见反馈
    public void feedBackClick(){
        finder.findElementById("com.oppo.ohome:id/tv_feedback").click();
    }
    //隐私声明
    public void policyClick(){
        finder.findElementById("com.oppo.ohome:id/tv_policy").click();
    }
    //版本号点击
    public void  versionClick(){
        finder.findElementById("com.oppo.ohome:id/tv_upgrade").click();
    }
}
